#include <iostream>
using namespace std;

double warming = 0.3;
void update(double val) {
  extern double warming;
  warming += val;
  cout << "warming:" << warming << endl;
}
void local() {
  double warming = 0.8;
  cout << "locad warming is:" << warming << endl;
}
int main() {
  cout << "warming:" << warming << endl;
  update(0.1);
  cout << "warming:" << warming << endl;
  local();
  cout << "warming:" << warming << endl;

  return 0;
}
